package com.hsyt.pms.api.enums;

/**
 * @Description:
 * @ClassName:
 * @Package:
 * @Author: caiyl@hsyuntai.com
 * @Date:
 * @Copyright: 版权归 YunTai 所有
 * <ModifyLog>
 * @ModifyContent:
 * @Author:
 * @Date: </ModifyLog>
 */
public enum ErrorCode {

    LOGIN_INFO_NULL("LOGIN_INFO_NULL", "登录信息缺失"),
    LOGIN_VCODE_ERROR("LOGIN_VCODE_ERROR", "验证码不正确"),
    LOGIN_USERNAME_EXCEPTION("LOGIN_USERNAME_EXCEPTION", "用户账户异常、请联系管理员"),
    LOGIN_USERNAME_STATE_EXCEPTION("LOGIN_USERNAME_STATE_EXCEPTION", "用户账户异常、请联系管理员"),
    UDB_LOGIN_PASSWORD_ERROR_CODE("600010000100026", "密码错误"),//udb用户名或密码错误编码
    UDB_LOGIN_USERNAME_ERROR_CODE("600010000100027", "用户名错误"),//udb用户名或密码错误编码
    ERROR_TIMES_MAX("5", "用户名或密码错误超过5次锁定半小时"),
    ERROR_SURPLUS_TIMES("ERROR_SURPLUS_TIMES", "用户名或密码错误，剩余{0}次"),
    LOGIN_PLATFORM_USER_NULL("LOGIN_PLATFORM_USER_NULL", "平台、医生用户未创建或状态异常"),
    LOGIN_ERROR("LOGIN_ERROR", "登录失败");

    private String code;
    private String name;

    private ErrorCode(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
